package com.yc.vote.mapper;

import com.yc.vote.entity.TpUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 投票系统-用户表-4 Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2023-07-10
 */
public interface TpUserMapper extends BaseMapper<TpUser> {

    @Select("select * from tp_user" +
            " where uname=#{uname} and pwd=#{pwd}")
    TpUser selectForLogin(@Param("uname") String uname
            , @Param("pwd")String pwd);

}
